using UnityEngine;
using QFramework;

namespace QFramework.Example
{
    public partial class TreasureBox : ViewController
    {
        private void OnMouseDown()
        {
            var slotGroupComponent = GetComponent<SlotGroupComponent>();
            if (slotGroupComponent.UISlotGroup.gameObject.activeSelf)
            {
                slotGroupComponent.Close();
            }
            else
            {
                slotGroupComponent.Open();
            }
        }
    }
}
